package top.likeqc.blog.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import top.likeqc.blog.pojo.Tag;

/**
 * @author likeqc.top
 * @date 2021/4/17 8:38
 */
public interface TagService {

    Tag saveTag(Tag tag);

    void deleteTag(Long id);

    Tag updateTag(Long id, Tag tag);

    Tag getTag(Long id);

    Tag getTagByName(String name);

    Page<Tag> listTag(Pageable pageable);
}
